﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLinePacking.Models.Entity;

namespace ZoneLinePacking.Models.Dto {

    public class MenuItemDto : MenuItem {

        private bool _isParent;
        /// <summary>
        /// 是否父级
        /// </summary>
        public bool IsParent {
            get { return _isParent; }
            set { _isParent = value; base.RaisePropertyChanged(); }
        }


        private ObservableCollection<MenuItemDto> _children;
        /// <summary>
        /// 子菜单
        /// </summary>
        public ObservableCollection<MenuItemDto> Children {
            get { return _children; }
            set { _children = value; base.RaisePropertyChanged(); }
        }

    }

}
